package handler

import (
	"mxshop_srvs/goods_srv/dao"
	proto "mxshop_srvs/goods_srv/proto/gen/v1"

	"mxshop_srvs/goods_srv/dao/mysql"
)

type Service struct {
	DB *mysql.Gorm
	dao.GoodsRepo
	proto.UnimplementedGoodsServer
}

// NewService defines a goods service.
func NewService(db *mysql.Gorm, goodsRepo dao.GoodsRepo) *Service {
	return &Service{
		DB:        db,
		GoodsRepo: goodsRepo,
	}
}
